package keer.httpinterface.proxy;

import keer.httpinterface.HttpInterceptor;

/**
 * 默认拦截器工厂实现类，使用{@link Class#newInstance()}方法创建拦截器实例
 * @see InterceptorFactory
 * @see HttpInterceptor
 *
 * @author Keer
 * @since 1.0.0
 */
public class DefaultInterceptorFactory implements InterceptorFactory {
    @Override
    public HttpInterceptor create(Class<? extends HttpInterceptor> interceptorClass) throws Exception {
        return interceptorClass.newInstance();
    }
}
